package com.itheima;

import com.itheima.config.SpringConfig;
import com.itheima.service.BookService;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

/**
 * @author 刘全
 * @date 2021/9/12
 */
public class app {
    public static void main(String[] args) {
        ApplicationContext ac = new AnnotationConfigApplicationContext(SpringConfig.class);
        BookService bookService = ac.getBean(BookService.class);
        boolean flag = bookService.trimStr("http://www.baidu.com", "root ");
        System.out.println(flag);

    }
}
